﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Planisoft.Entities;

namespace Planisoft.DAO
{
    public class ValRegPensCabDAO : MasterDataAcces , IValRegPensCabDAO
    {
        
        public List<ValRegPensCab> GetByGroupRegPensionario()
        {
            var query = from vrp in Context.ValRegPensCabs
                        orderby vrp.anio, vrp.mes descending
                        select vrp;
            return query.ToList();
        
        }
    }
}
